<?php

namespace common\modules\wechat\models;

use common\components\ActiveQuery;
use Yii;

class FansQuery extends ActiveQuery
{

    /**
     * 关注状态
     *
     * @return static
     */
    public function subscribed()
    {
        return $this->andWhere(['status' => Fans::STATUS_SUBSCRIBED]);
    }
}
